import request from '@/utils/request'

//规则变量配置列表
export function fetchList(params) {
	return request({
		url: '/datahandler/ruleParamConfig/list',
		method: 'get',
		params
	})
}

//规则变量配置新增
export function ruleConfigAdd(data) {
	return request({
		url: '/datahandler/ruleParamConfig/add',
		method: 'post',
		data
	})
}

//规则变量配置编辑
export function ruleConfigEdit(data) {
	return request({
		url: '/datahandler/ruleParamConfig/edit',
		method: 'post',
		data
	})
}

//规则变量配置删除
export function ruleConfigDelete(query) {
	return request({
		url: '/datahandler/ruleParamConfig/remove',
		method: 'get',
		params: query
	})
}
